/* $Id: main.h,v 1.8 2004/07/11 08:45:56 bhepple Exp $ */

struct dcalc_button_s {
	int		i, j;
	COMMAND 	command;
	char		label[10];
	char		tooltip[80];
	char		text[10];
	char		invtext[10];
};
typedef struct dcalc_button_s dcalc_button;

extern dcalc_button *l_buttons, *r_buttons;
extern GtkWidget *main_window;
extern GtkWidget *mem_dialog;
extern GtkWidget *registers;
extern GtkWidget *eval_dialog;
extern GtkEntry  *entryX;
extern int mem_value;
extern int raw_mode;
extern int insertedTextIsFromDcalc;

extern void display_buttons(int c);
extern void guiSetMode(int i);
extern int button_command(dcalc_button *b, int i, int j);
extern char calculatorFont[];
extern char buttonFont[];
extern char plusMinusFont[];
extern void fixFont(char *fontName, GtkWidget *main_window, char *name);
extern void setButtonFont(char *fontName);
extern void setPlusMinusFont(char *fontName);
extern void toggle_registers(void);
extern void set_x(char *inbuf);
extern void append_x(char *inbuf);
extern const char const *get_x(void);

#undef RUNTIME_FONT_CHANGES_ARE_WORKING
